package com.groupbuying.task.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UrlConstants {

    /**
     * 定时任务增加
     */
    public static String TASK_ADD;
    /**
     * 定时任务删除
     */
    public static String TASK_DELETE;

    /**
     * 定时任务修改
     */
    public static String TASK_UPDATE;

    /**
     * 红包定时任务修改
     */
    public static String TASK_UPDATE_RED_PACKAGE;

    /**
     * 定时任务启动
     */
    public static String TASK_START;

    public static String getTaskStart() {
        return TASK_START;
    }

    @Value("${url.task_start}")
    public  void setTaskStart(String taskStart) {
        TASK_START = taskStart;
    }

    public String getTaskAdd() {
        return TASK_ADD;
    }

    @Value("${url.task_add}")
    public void setTaskAdd(String taskAdd) {
        TASK_ADD = taskAdd;
    }

    public static String getTaskUpdateRedPackage() {
        return TASK_UPDATE_RED_PACKAGE;
    }
    @Value("${url.task_update_red_package}")
    public  void setTaskUpdateRedPackage(String taskUpdateRedPackage) {
        TASK_UPDATE_RED_PACKAGE = taskUpdateRedPackage;
    }

    public String getTaskUpdate() {
        return TASK_UPDATE;
    }

    @Value("${url.task_update}")
    public void setTaskUpdate(String taskUpdate) {
        TASK_UPDATE = taskUpdate;
    }

    public String getTaskDelete() {
        return TASK_DELETE;
    }

    @Value("${url.task_delete}")
    public void setTaskDelete(String taskDelete) {
        TASK_DELETE = taskDelete;
    }
}